package com.ruoyi.iot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.iot.mapper.DeviceWeatherMapper;
import com.ruoyi.iot.domain.DeviceWeather;
import com.ruoyi.iot.service.IDeviceWeatherService;

/**
 * 气象站数据Service业务层处理
 * 
 * @author rww
 * @date 2023-09-20
 */
@Service
public class DeviceWeatherServiceImpl implements IDeviceWeatherService 
{
    @Autowired
    private DeviceWeatherMapper deviceWeatherMapper;

    /**
     * 查询气象站数据
     * 
     * @param id 气象站数据主键
     * @return 气象站数据
     */
    @Override
    public DeviceWeather selectDeviceWeatherById(Long id)
    {
        return deviceWeatherMapper.selectDeviceWeatherById(id);
    }

    /**
     * 查询气象站数据列表
     * 
     * @param deviceWeather 气象站数据
     * @return 气象站数据
     */
    @Override
    public List<DeviceWeather> selectDeviceWeatherList(DeviceWeather deviceWeather)
    {
        return deviceWeatherMapper.selectDeviceWeatherList(deviceWeather);
    }

    /**
     * 新增气象站数据
     * 
     * @param deviceWeather 气象站数据
     * @return 结果
     */
    @Override
    public int insertDeviceWeather(DeviceWeather deviceWeather)
    {
        return deviceWeatherMapper.insertDeviceWeather(deviceWeather);
    }

    /**
     * 修改气象站数据
     * 
     * @param deviceWeather 气象站数据
     * @return 结果
     */
    @Override
    public int updateDeviceWeather(DeviceWeather deviceWeather)
    {
        return deviceWeatherMapper.updateDeviceWeather(deviceWeather);
    }

    /**
     * 批量删除气象站数据
     * 
     * @param ids 需要删除的气象站数据主键
     * @return 结果
     */
    @Override
    public int deleteDeviceWeatherByIds(Long[] ids)
    {
        return deviceWeatherMapper.deleteDeviceWeatherByIds(ids);
    }

    /**
     * 删除气象站数据信息
     * 
     * @param id 气象站数据主键
     * @return 结果
     */
    @Override
    public int deleteDeviceWeatherById(Long id)
    {
        return deviceWeatherMapper.deleteDeviceWeatherById(id);
    }
}
